import axios from 'axios'
const baseURL = "http://localhost:3000"
function http({
    url
}){
    return new Promise((resolve,reject)=>{
        axios({
            baseURL,
            url
        })
        .then(res => {
            resolve(res)
        })
        .catch(err => {
            reject(err); 
        })
    })
}
export default {
    http
}